package com.fudan.gamestore.pojo;

public class Token {
    private String token;
    private Integer userId;
    private User user;

    public Token() {
    }

    public Token(String token, Integer userId) {
        this.token = token;
        this.userId = userId;
        this.user = null;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getUserId() {
        return userId;
    }


    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Token{" +
                "token='" + token + '\'' +
                ", userId=" + userId +
                ", user=" + user +
                '}';
    }
}
